#ifndef VD_NET_INIT_INCLUDED
#define VD_NET_INIT_INCLUDED

#include "vd_net.h"

int vd_start_server_udp_socket(vd_ssocket *sock, unsigned int port);
int vd_close_server_udp_socket(vd_ssocket *sock);

int vd_start_client_udp_socket(vd_csocket *vd_sock, char *ip, unsigned int port);
int vd_close_client_udp_socket(vd_csocket *sock);

int vd_start_server_tcp_socket(vd_ssocket *sock, unsigned int port);
int vd_close_server_tcp_socket(vd_ssocket *sock);

int vd_start_client_tcp_socket(vd_csocket *vd_sock, char *ip, unsigned int port);
int vd_close_client_tcp_socket(vd_csocket *sock);

#endif // VD_NET_INIT_INCLUDED
